package com.zb.kc.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@Component
@FeignClient(value = "service-ucenter")
public interface UcenterMemberClient {

    @ApiOperation(value = "根据用户id返回用户昵称、头像")
    @GetMapping("/eduucenter/member/getUserLessInfo/{id}")
    Map<String, Object> getUserLessInfo(@PathVariable("id") String id);
}
